package com.kystar.muxplayer.model;

import android.graphics.Rect;
import android.widget.FrameLayout;

public class Layer {
    private LayerType layerType;
    private SourceType sourceType;
    private Bound viewBound = new Bound();
    private Bound sourceBound = new Bound();
    private boolean visible = false;
    private boolean fullScreen = false;
    private boolean selected = false;
    private boolean global = false;//TODO 不知道什么意思
    private int order = 0;// 层高 1-4;
    private int filterColor;
    private int featherRadius;
    private int alpha;
    private Bound oldBound = new Bound();

    public Bound getOldBound() {
        return oldBound;
    }

    public void setOldBound(Bound oldBound) {
        this.oldBound = oldBound;
    }

    public LayerType getLayerType() {
        return layerType;
    }

    public void setLayerType(LayerType layerType) {
        this.layerType = layerType;
    }

    public SourceType getSourceType() {
        return sourceType;
    }

    public void setSourceType(SourceType sourceType) {
        this.sourceType = sourceType;
    }

    public Bound getViewBound() {
        return viewBound;
    }

    public void setViewBound(Bound viewBound) {
        this.viewBound = viewBound;
    }

    public Bound getSourceBound() {
        return sourceBound;
    }

    public void setSourceBound(Bound sourceBound) {
        this.sourceBound = sourceBound;
    }

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public boolean isFullScreen() {
        return fullScreen;
    }

    public void setFullScreen(boolean fullScreen) {
        this.fullScreen = fullScreen;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public boolean isGlobal() {
        return global;
    }

    public void setGlobal(boolean global) {
        this.global = global;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public int getFilterColor() {
        return filterColor;
    }

    public void setFilterColor(int filterColor) {
        this.filterColor = filterColor;
    }

    public int getFeatherRadius() {
        return featherRadius;
    }

    public void setFeatherRadius(int featherRadius) {
        this.featherRadius = featherRadius;
    }

    public int getAlpha() {
        return alpha;
    }

    public void setAlpha(int alpha) {
        this.alpha = alpha;
    }

    @Override
    public String toString() {
        return "Layer{" +
            "layerType=" + layerType +
            ", sourceType=" + sourceType +
            ", viewBound=" + viewBound +
            ", sourceBound=" + sourceBound +
            ", visible=" + visible +
            ", fullScreen=" + fullScreen +
            ", selected=" + selected +
            ", global=" + global +
            ", order=" + order +
            ", filterColor=" + filterColor +
            ", featherRadius=" + featherRadius +
            ", alpha=" + alpha +
            ", oldBound=" + oldBound +
            '}';
    }
}
